package team.xyg.cdtu2.service.impl;

import team.xyg.cdtu2.dto.PlatMapData;
import team.xyg.cdtu2.entity.AnchorList;
import team.xyg.cdtu2.dao.AnchorListDao;
import team.xyg.cdtu2.service.AnchorListService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

import javax.annotation.Resource;
import java.util.List;

/**
 * (AnchorList)表服务实现类
 *
 * @author makejava
 * @since 2022-06-28 08:54:29
 */
@Service("anchorListService")
public class AnchorListServiceImpl implements AnchorListService {
    @Resource
    private AnchorListDao anchorListDao;


    /**
     * 查询主播带货排行Top5
     * @return
     */
    @Override
    public List<PlatMapData> queryAnchorTop() {
        return anchorListDao.queryAnchorTop();
    }
}
